package cn.minhx.lab.design_patterns.visitor.f2.starter;

import cn.minhx.lab.design_patterns.visitor.f2.DataView;
import cn.minhx.lab.design_patterns.visitor.f2.visitor.impl.Parent;
import cn.minhx.lab.design_patterns.visitor.f2.visitor.impl.Principal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {

    private static final Logger logger = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        test();
    }

    public static void test(){
        DataView dataView = new DataView();

        logger.info("\r\n家长视角访问：");
        dataView.show(new Parent());     // 家长

        logger.info("\r\n校长视角访问：");
        dataView.show(new Principal());  // 校长
    }

}
